package com.njtoyo.taxi.admin.rest.wrapper.marketing.couponTemplate;

import com.njtoyo.taxi.admin.mapper.master.enums.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel("创建优惠券模板")
public class CreateCouponWrapper {

    @ApiModelProperty(value = "商品标题")
    @NotNull(message = "商品标题不能为空")
    private String title;

    @ApiModelProperty(value = "优惠券类型")
    @NotNull(message = "优惠券类型不能为空")
    private CouponCategory category;

    @ApiModelProperty(value = "优惠券面值")
//    @NotNull(message = "优惠券面值不能为空")
    private BigDecimal couponValue;

    @ApiModelProperty(value = "规格参数")
    private String specifics;

    @ApiModelProperty(value = "适用范围：0:mix,1:realtime,2:appointment")
    @NotNull(message = "适用范围不能为空")
    private CouponScope scope;

    @ApiModelProperty(value = "适用平台 0:mix[通用],1:app,2:wxmina[小程序],3:h5")
    @NotNull(message = "适用平台不能为空")
    private CouponPlatform platform;

    @ApiModelProperty(value = "来源渠道 0:system[平台发放],1:activity_team[助力]")
    @NotNull(message = "来源渠道不能为空")
    private CouponSourceChannel sourceChannel;

    @ApiModelProperty(value = "使用条件")
    private CouponUsageCondition usageCondition;

    @ApiModelProperty(value = "使用限制")
    private String usageLimit;

    @ApiModelProperty(value = "优惠券生效时间")
    private Long effectiveAfter;

    @ApiModelProperty(value = "优惠券生效时间段")
    private Long effectiveDuration;


}
